Set up intent addflags. Remove the main activity on the back stack after intent