refactor fragment tabs, fix photo taking issue