fix button bug, and auto expand after 5 seconds