fixed code for opening new windows and layout call for fb. 
removed debug output
fixed wrong file name