fixed bug and added bottons to the view