Next button added and layout fixed. Viewpage buttons are missing and will be implemented later