added button logic for project