masthead functionality done