Add a refresh button to the action bar.. and fix bad code