Pause behavior when printing

I have one issue with my astrobox.
When y pause the printing the hotend stops right where is printing. It does not move to the home position. When i resume the print it resumes correctly.
I need to know where to configure the pause behaviour of the hotend when i pause printing.
I need to move the hotend in the home position when i pause printing
I use a marlin board.