Added action bar and pick time function