changed the link to stock count form
changed the next button to toggle btw save and change the button color to green, also changes the position to of preview/confirm button from top to button
changed redirect after save link to home page, added month list and some  conditions to check day variable
edited function test to check if defined