frontend layout and registration part