Storing flags, messed up the view