added history button
got working tab view controller