Fixing the issue of moving only the form up and down