added focus functionality for flipping and editing contacts