added file authentication and layout fixes