changed top value of model css class
created method sendRedirect to avoid code duplication