button pop out functionality