Removed unnecessary blank lines and added improvements for fancy box