fixed resource dic removal bugs and tidied switch logic on responsive width/height methods