added profile page and bug fixing