added 'create' and 'cancel' functions on posts controller
'cancel' function returns back to last location