Fixed -1 increment issue. Added tab view controller.