todo : modify action bar , make the pause function