added controller flow chart