updated for a minor UI issue with ios7