added preferences layout