made widgetId optional param

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>
added API controller map

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>