fixes for adding dashboard widgets. #360