finalized begin button logic