Fixed bugs.
Corrected back stack.
Added appcompat library.