fixed framework issues (changed uikit to optional because of ios7 uialertview inconsistencies)'