bug fixed - error was thrown by javascript if there was not any sidebox - check condition added