cleanred up code and add uialertview