fixing bugs

Fixing bugs and changed the add page