Next Button functionality added