added authorization with check attributes, worked with mobile layout a bunch