added exceptions types and catch exceptions in widget controller
fixed css issue